import request from '@/utils/request'

// 查询优惠券作用范围信息列表
export function listCouponScope(query) {
  return request({
    url: '/marketing/couponScope/list',
    method: 'get',
    params: query
  })
}

// 查询优惠券作用范围信息详细
export function getCouponScope(id) {
  return request({
    url: '/marketing/couponScope/' + id,
    method: 'get'
  })
}

// 新增优惠券作用范围信息
export function addCouponScope(data) {
  return request({
    url: '/marketing/couponScope',
    method: 'post',
    data: data
  })
}

// 修改优惠券作用范围信息
export function updateCouponScope(data) {
  return request({
    url: '/marketing/couponScope',
    method: 'put',
    data: data
  })
}

// 删除优惠券作用范围信息
export function delCouponScope(id) {
  return request({
    url: '/marketing/couponScope/' + id,
    method: 'delete'
  })
}
